Conversation
|
@matifali @zedkipp @evgeniy-scherbina I believe this is now ready for review, if I have missed anything in the code or as part of the contributing process please just let me know and I will resolve, this is my first contribution. Also, I was thinking it might be better to remove the Codex changes, and implement those in a separate PR once the new version of AgentAPI with the changes is released. But I will wait for your guidance before proceeding on that. Thanks! |
|
@shanewhite97 We made some changes to how Codex starts in #781. Would be nice to take a look and rebase on |
|
@matifali yh I saw those, I think I will remove them out of this PR to keep things simple. Let me do that now. I will also try to resolve the other pipeline errors |
There was a problem hiding this comment.
Pull request overview
Adds optional Coder Boundary network filtering support to the shared agentapi module and wires it through to the Codex module so the Codex CLI can be executed behind boundary (nsjail/landjail), with documentation for how to enable it.
Changes:
- Add new Terraform inputs (
enable_boundary,boundary_jail_type,boundary_proxy_port,boundary_config_path) to theagentapimodule and pass them into the runtime script. - Implement boundary setup in
agentapi’smain.sh(config generation + exported wrapper) and update Codex start logic to invoke Codex via the wrapper when present. - Bump the Codex module’s dependency on
coder/agentapito2.2.0and document boundary usage in the Codex README.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
registry/coder/modules/agentapi/scripts/main.sh |
Adds boundary setup (config + exported wrapper) prior to running the module’s start script. |
registry/coder/modules/agentapi/main.tf |
Adds boundary-related variables and passes them as script args into main.sh. |
registry/coder-labs/modules/codex/scripts/start.sh |
Wraps the Codex invocation with BOUNDARY_WRAPPER when boundary is enabled. |
registry/coder-labs/modules/codex/main.tf |
Exposes boundary variables and forwards them to the agentapi module; bumps agentapi module version. |
registry/coder-labs/modules/codex/README.md |
Documents how to enable Boundary network filtering for Codex. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@matifali I have added some changes based on the feedback, if you could run another review that would be appreciated :) |
…ent-api-boundary-support
…shanewhite97/registry into feat/agent-api-boundary-support
…y the boundary config, renamed BOUNDARY_PREFIX to AGENTAPI_BOUNDARY_PREFIX
|
@zedkipp Thanks for those suggestions that was really helpful, hopefully they have all been address now but please let me know if anything is not as you would like. |
|
@35C4n0r can you also review the changes here? Thanks |
…d in favoured of standard method. README and tests updated.
|
@shanewhite97 there's some formatting to fix in the tests (check failed). Would be great to squash these commits down to a single commit with clear commit message before merge. Could be something like: The boundary related changes look good to me, but I would like @35C4n0r to have the final approval on the changes. |
|
I'll test and review this tommorow 👍 |
|
@zedkipp Done the formatting 😄 Are we going to use a single commit message when merging? Or would you like me to do it another way? |
Enable any agent module to run its AI agent inside Coder's Agent Boundaries. The agentapi module handles config setup and wrapper script creation, then exports AGENTAPI_BOUNDARY_PREFIX for consuming modules to use in their start scripts. Users must provide a boundary config.yaml with their allowlist and settings when enabling boundary.
…shanewhite97/registry into feat/agent-api-boundary-support
|
Before or during merge works fine! Mainly want to ensure this gets merged as a single clear commit. Lastly, it would be good to test that |






Description
Adds optional Agent Boundary (network filtering) support to the agentapi module.
When
enable_boundary = truewith a user-providedboundary_config, themodule sets up the boundary config and exports
AGENTAPI_BOUNDARY_PREFIXforagent modules to use in their start scripts.
Closes #457
Type of Change
Module Information
Path:
registry/coder/modules/agentapiBreaking change: No